package com.example.common.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@AllArgsConstructor
@Accessors(chain = true)
public class TestVo {
    private String name;
    private int age;
    private LocalDate localDate;
    private List<String> list;

    public TestVo(){
        name = "默认字符串";
        age = 16;
        localDate = LocalDate.now();
        list = new ArrayList<>(Arrays.asList("元素1","元素2"));
    }

    @Override
    public String toString() {
        return "TestVo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", localDate=" + localDate +
                ", list=" + list +
                '}';
    }
}
